#pragma once
#include "PointLabTools/Prerequisites.h"

#include "PointLabCore/IPointCloud.h"
#include "PointLabCore/ClientClass.h"

namespace PointlabTools
{
	class POINTLABTOOLS_EXPORT RandomSample
	{
	public:
		RandomSample();
		~RandomSample();

		void setInputCloud(PointLabCore::IPointCloud* cloud);
		PointLabCore::IPointCloud* getInputCloud();

		void setPercentage(PointLabCore::Real percentage) { mPercentage = percentage; }
		PointLabCore::Real getPercentage()const { return mPercentage; }

		PointLabCore::IPointCloud* execute();
	protected:
		PointLabCore::Real mPercentage;
		PointLabCore::IPointCloud* mInputCloud;
	};
}

